home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / gengetopt-2.6.lha / gengetopt-2.6 / doc / cmdline1.h < prev    next >
C/C++ Source or Header  |  2002-06-24  |  2KB  |  53 lines

  1. /* cmdline1.h */
  2.  
  3. /* File autogenerated by gengetopt version 2.6  */
  4.  
  5. #ifndef _cmdline1_h
  6. #define _cmdline1_h
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif /* __cplusplus */
  11.  
  12. /* Don't define PACKAGE and VERSION if we use automake.  */
  13. #if defined PACKAGE
  14. #  undef PACKAGE
  15. #endif
  16. #define PACKAGE "sample1"
  17. #if defined VERSION
  18. #  undef VERSION
  19. #endif
  20. #define VERSION "2.0"
  21.  
  22. struct gengetopt_args_info {
  23.   char * str_opt_arg;    /* A string option.  */
  24.   int my_opt_arg;    /* Another integer option.  */
  25.   int int_opt_arg;    /* A int option.  */
  26.   int flag_opt_flag;    /* A flag option (default=off).  */
  27.   long long_opt_arg;    /* A long option.  */
  28.   char * def_opt_arg;    /* A string option with default (default='Hello').  */
  29.  
  30.   int help_given ;    /* Whether help was given.  */
  31.   int version_given ;    /* Whether version was given.  */
  32.   int str_opt_given ;    /* Whether str-opt was given.  */
  33.   int my_opt_given ;    /* Whether my-opt was given.  */
  34.   int int_opt_given ;    /* Whether int-opt was given.  */
  35.   int flag_opt_given ;    /* Whether flag-opt was given.  */
  36.   int funct_opt_given ;    /* Whether funct-opt was given.  */
  37.   int long_opt_given ;    /* Whether long-opt was given.  */
  38.   int def_opt_given ;    /* Whether def-opt was given.  */
  39.  
  40.   char **inputs ; /* unamed options */
  41.   unsigned inputs_num ; /* unamed options number */
  42. } ;
  43.  
  44. int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
  45.  
  46. void cmdline_parser_print_help(void);
  47. void cmdline_parser_print_version(void);
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif /* __cplusplus */
  52. #endif /* _cmdline1_h */
  53.